<?php
	require "config.php";

	$_birthday = $_POST['year'].'-'.$_POST['month'].'-'.$_POST['day'];
	$query = "INSERT INTO blog_user(user,pass,ques,ans,email,birthday,ps)
		VALUES( '{$_POST['user']}',sha1('{$_POST['pass']}'),'{$_POST['ques']}','{$_POST['ans']}','{$_POST['eamil']}','{_birthday}','{$_POST['ps']}'";
	mysqli_query($query) or die("新增失败:".mysqli_error());
	//模拟延迟
	sleep(3);
	echo mysql_affected_rows();
	mysqli_close();
?>